package com.ssm.xm.model;

import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component
public class StudentWriteGrade implements Serializable {
    private Integer writeGradeId;

    private Integer studentId;

    private Integer thId;

    private String writeGradeSubject;

    private String writeGrade;

    private Date writeGradeTime;

    private String writeGradeNote;

    private static final long serialVersionUID = 1L;

    public Integer getWriteGradeId() {
        return writeGradeId;
    }

    public void setWriteGradeId(Integer writeGradeId) {
        this.writeGradeId = writeGradeId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Integer getThId() {
        return thId;
    }

    public void setThId(Integer thId) {
        this.thId = thId;
    }

    public String getWriteGradeSubject() {
        return writeGradeSubject;
    }

    public void setWriteGradeSubject(String writeGradeSubject) {
        this.writeGradeSubject = writeGradeSubject == null ? null : writeGradeSubject.trim();
    }

    public String getWriteGrade() {
        return writeGrade;
    }

    public void setWriteGrade(String writeGrade) {
        this.writeGrade = writeGrade == null ? null : writeGrade.trim();
    }

    public Date getWriteGradeTime() {
        return writeGradeTime;
    }

    public void setWriteGradeTime(Date writeGradeTime) {
        this.writeGradeTime = writeGradeTime;
    }

    public String getWriteGradeNote() {
        return writeGradeNote;
    }

    public void setWriteGradeNote(String writeGradeNote) {
        this.writeGradeNote = writeGradeNote == null ? null : writeGradeNote.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", writeGradeId=").append(writeGradeId);
        sb.append(", studentId=").append(studentId);
        sb.append(", thId=").append(thId);
        sb.append(", writeGradeSubject=").append(writeGradeSubject);
        sb.append(", writeGrade=").append(writeGrade);
        sb.append(", writeGradeTime=").append(writeGradeTime);
        sb.append(", writeGradeNote=").append(writeGradeNote);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}